package spring.bean.cofig;

import org.springframework.beans.factory.config.BeanPostProcessor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import spring.bean.MyBean;

@Configuration
public class AppConfig {
    @Bean(initMethod = "customInitMethod", destroyMethod = "customDestroyMethod")
    public MyBean myBean() {
        return new MyBean();
    }
}